<template>
  <div class="itemBodys">
    <echarts></echarts>
  </div>
</template>

<script>
import echarts from './echarts.vue'
export default {
  name: 'item3_2Title',
  props: {objParent:{type:[Object,Array]}},
  data () {
    return {
      total: 0,
      list: []
    }
  },
  components: { echarts },
  methods: {
    calculateTotalValue() {
      return this.list.reduce((sum, item) => {
        if (item.value !== 0&&item.value!=="暂无数据") {
          return sum + item.value;
        } else {
          return sum;
        }
      }, 0);
    },
  },
}
</script>

<style lang="scss" scoped>
.itemBodys {
  position: relative;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: calc(100% - 10px);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: flex-start;

  .itemBodysl {
    width: 50%;
    height: 100%;
    position: relative;
  }

  .itemBodysl {
    width: 50%;
    height: 100%;
    position: relative;
  }
}
</style>
